package com.aaa.controller.sas;

import com.aaa.entity.LayData;
import com.aaa.entity.sas.TSasRecordDedtail;
import com.aaa.service.sas.TSasRecordDedtailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("tSasRecordDedtail")

public class TSasRecordDedtailController {
    @Autowired
    private TSasRecordDedtailService tSasRecordDedtailService;
    @PostMapping
    public LayData insertDetail(@RequestBody List<TSasRecordDedtail> details){
        return new LayData(tSasRecordDedtailService.insertBatch(details));
    }
}
